public class Student {
    private String name;
    private int age;
    private String school;
    private String major;

    public Student(){

    }

    public Student(String nameParam,int ageParam){

        name = nameParam;
        age = ageParam;

    }


    public Student(String nameParam,int ageParam,String schoolParam){
        name = nameParam;
        age = ageParam;
        school = schoolParam;
    }

    public Student(String nameParam,int ageParam,String schoolParam,String majorParam){
        name = nameParam;
        age = ageParam;
        school = schoolParam;
        major = majorParam;
    }

    public String getInfo(){

        return "姓名:" + name + "\t年龄" + age + "\t学校:" + school + "\t专业:" + major;
    }
}
